package chat.clientToServerMessage;

import chat.server.ClientThread;
import chat.server.Server;

/**
 * Registration is sent by a Client
 * @author Marius Eichenberg
 *
 */
public class Registration implements ClientToServerMessage {

	private static final long serialVersionUID = 1L;
	private String name, password;	
	
	public Registration(String name, String password) {	
		this.name = name;
		this.password = password;
	}

	
	public String getName() {
		return name;
	}
	
	
	public String getPassword() {
		return password;
	}
	

	@Override
	public void processOnServer(Server server, ClientThread clientThread) {
		 server.registerPerson(this, clientThread);
	}
}
